#include<stdio.h>
#include<string.h>

void bubble_sort(int* str, int sz)
{
	int i = 0;
	for ( i = 0; i < sz-1; i++)
	{
		int j = 0;
		for ( j = 0; j <sz-1-i; j++)
		{
			if (str[j]<str[j+1])
			{
				int tmp = 0;
				tmp = str[j];
				str[j] = str[j+1];
				str[j+1] = tmp;

			}
		}
	}
}
void print(int* str, int sz)
{
	for (int i = 0; i < sz; i++)
	{
		printf("%d ", str[i]);
	}
}
int main()
{
	int arr[] = { 0,1,2,3,4,5,6,7,8,9 };
	int sz = sizeof(arr) / sizeof(arr[0]);
	bubble_sort(arr, sz);
	print(arr,sz);
	return 0;
}